package com.czx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.czx.entity.DiscussPost;
import com.czx.entity.Message;
import com.czx.entity.MyPage;
import com.czx.vo.LetterVo;
import org.springframework.data.repository.query.Param;

public interface LetterMapper extends BaseMapper<Message> {

    MyPage getLetter(MyPage page, Integer id);

    Integer secMessage(Integer id);

    Integer getLetterCount(Integer id);

    Integer getUnreadCount(@Param("fromId") Integer fromId, @Param("toId") Integer toId);


    MyPage getLetterList(MyPage page,@Param("fromId") Integer fromId, @Param("toId") Integer toId);
}
